package com.ddz.qpz.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author: LiQingBo
 * @Date: 2021/10/28-10-28-9:38
 * @Description: com.ddz.qpz.pojo.entity
 * @version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Fund对象", description = "基金列表")
public class Fund implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long fundId;

    @ApiModelProperty(value = "基金代码")
    private String fundNumber;

    @ApiModelProperty(value = "基金名称")
    private String fundName;

    @ApiModelProperty(value = "年化利率")
    private BigDecimal fundRate;

    @ApiModelProperty(value = "基金详情")
    private String fundDetails;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
